{include file='yxworker/w_head'}
<style type="text/css">
    .warp_img{
    width: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    margin: 0 0 0 10px;
  }
</style>
    <header class="s_header ui-flex">
        <div class="sao">
            <img src="{$_G['URL']['WORKER_CSS']}images/home_03.png">
        </div>
        <div class="s_search ui-flex">
            <img src="{$_G['URL']['WORKER_CSS']}images/home_10.png">
            <input type="text" placeholder="请输入">
        </div>
        <a href="#">
            <img src="{$_G['URL']['WORKER_CSS']}images/home_05.png">
        </a>
        <a href="#">
            <img src="{$_G['URL']['WORKER_CSS']}images/home_07.png">
        </a>
    </header>
    <div class="index_content">
        <div class="s_items s_bg">
            <div class="s_title">
                <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                {if $op=='my'}
                我的团
                {elseif $op=='my'}
                本公司的团
                {else}
                全部团
                {/if}
            </div>
        </div>
        <div class="qbt_title">
            当前团数【<span>{$groupsnum}</span>】
        </div>
        {loop $groups $item}
        <div class="qbt_item ui-flex s_bg">
            <div class="l_left">
                <dl>
                    <dt style="width: 1rem; height: 1rem;">
                        <img class="warp_img" src="{php echo tomedia($item['avatar']);}">
                    </dt>
                    <dd>
                        <span style="width: 1.6rem">团号:{php echo $item['id']+10000;}</span>
                        <p>昵称：{php echo mb_substr($item['nickname'],0,8,'utf-8');}</p>
                        <p>姓名：{$item['username']}</p>
                        <p>电话：{$item['mobile']}</p>
                        <p>推荐人：{php echo mb_substr($item['tjr'],0,4,'utf-8');}</p>
                        {if $op!='my'}
                        <p>客服：{$item['workername']}</p>
                        {/if}
                        {if $pid > 0}
                        <p>状态：{if $item['status'] < 0}
                                {php echo $item['isrefund']==2?'自动退款':'手工退款';}
                            {elseif $item['status'] == 1}
                                已支付
                            {elseif $item['status'] == 0}
                                未支付
                            {/if}</p>
                        {/if}
                        <p>{php echo date("Y-m-d H:i:s", $item['addtime']);}</p>
                    </dd>
                </dl>
            </div>
            <div class="l_right ui-flex-1">
                {$item['tuanyuan']}
            </div>
        </div>
        {/loop}
    </div>
{include file='yxworker/w_foot'}
